﻿namespace LFrameworkAOT 
{
    internal class FsmDownloadPackageOver : IStateNode
    {
        private StateMachine m_Machine;
        PatchOperation m_PatchOperation;

        void IStateNode.OnCreate(StateMachine machine)
        {
            m_Machine = machine;
            m_PatchOperation = m_Machine.Owner as PatchOperation;
        }
        void IStateNode.OnEnter()
        {
            m_PatchOperation.DownloadPackageOver();
            m_Machine.ChangeState<FsmClearCacheBundle>();
        }
        void IStateNode.OnUpdate()
        { 
        }
        void IStateNode.OnExit()
        {
        }
    }
}
